package net.cloudsun.graph.core;

import java.io.Serializable;

/**
 * 边
 * 无权重有方向
 * @author Ryan
 * @since 1.0
 */
public class UnweightedEdge implements Edge, Serializable {
    private int from;
    private int to;
    public UnweightedEdge(int from, int to) {
        this.from = from;
        this.to = to;
    }

    @Override
    public int getFrom() {
        return from;
    }

    @Override
    public int getTo() {
        return to;
    }
}
